#ifndef __S3C6410ADDR_H__
#define __S3C6410ADDR_H__

#ifdef __cplusplus
extern "C" {
#endif

#define writel(v,a)  (*(volatile unsigned int *)(a))=(unsigned int)(v)
#define readl(a)     (*(volatile unsigned int *)(a))

#define writeb(v,a)  (*(volatile unsigned char *)(a))=(unsigned char)(v)
#define readb(a)     (*(volatile unsigned char *)(a))

#define write32(v,a)  (*(volatile unsigned int *)(a))=(unsigned int)(v)
#define read32(a)     (*(volatile unsigned int *)(a))

#define write16(v,a)  (*(volatile unsigned short *)(a))=(unsigned short)(v)
#define read16(a)     (*(volatile unsigned short *)(a))
  
#define write8(v,a)  (*(volatile unsigned char *)(a))=(unsigned char)(v)
#define read8(a)     (*(volatile unsigned char *)(a))
  
#ifdef __cplusplus
}
#endif
#endif  //__S3C6410ADDR_H__

